import request from '@/utils/request'

// 流程渲染
export function formDataShow(taskID) {
  return request({
    url: '/task/formDataShow/' + taskID,
    method: 'get'
  })
}

// 业务审批
export function formDataSave(taskID, data) {
  return request({
    url: '/task/formDataSave/' + taskID,
    method: 'post',
    data: data
  })
}

// 查询审批意见
export function historyFromData(id) {
  return request({
    url: '/historyFromData/ByInstanceId/' + id,
    method: 'get'
  })
}

//审批历史记录
export function approvalRecord(processKey,instanceId) {
  return request({
    url: '/flowdata/approvalRecord?processKey=' + processKey + '&instanceId=' + instanceId + '&pageNum=1&pageSize=10',
    method: 'get'
  })
}
